package com.och.mrcp.model;

import lombok.Data;

/**
 * 语音合成结果
 */
@Data
public class SynthesisResult {
    private byte[] audioData = new byte[0];
    private String format = "pcm";
    private int sampleRate = 16000;
    private int channels = 1;
    private long duration = 0; // 音频时长（毫秒）
    private String text = ""; // 合成的文本
    private long timestamp = System.currentTimeMillis();
    
    public SynthesisResult() {}
    
    public SynthesisResult(byte[] audioData, String format, int sampleRate, int channels, long duration, String text) {
        this.audioData = audioData;
        this.format = format;
        this.sampleRate = sampleRate;
        this.channels = channels;
        this.duration = duration;
        this.text = text;
    }
}
